package com.kingyea.app.market.syncMission.bean;

import com.kingyea.app.market.appBaseInfo.bean.AppInfoVo;

import java.io.Serializable;
import java.util.Date;

/**
 * @author
 * @version v1.0.0
 * @description SyncMission 实体类
 * @date Created in 2018-03-22 17:48:11
 */
public class SyncMission implements Serializable {
    /**
     * 应用编码
     */
    private String appCode;
    private String id;
    /**
     * 版本号
     */
    private String version;
    private Integer versionType;
    /**
     * 市场编码
     */
    private String marketCode;
    /**
     * 状态
     */
    private PushStatus status;
    /**
     * 发送时间
     */
    private Date startDate;
    /**
     * 结束时间
     */
    private Date endDate;
    private AppInfoVo appInfoVo;

    public SyncMission() {
    }

    public SyncMission(String appCode) {
        this.appCode = appCode;
    }

    public String getAppCode() {
        return this.appCode;
    }

    public void setAppCode(String appCode) {
        this.appCode = appCode;
    }

    public String getVersion() {
        return this.version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getMarketCode() {
        return this.marketCode;
    }

    public void setMarketCode(String marketCode) {
        this.marketCode = marketCode;
    }

    public PushStatus getStatus() {
        return this.status;
    }

    public void setStatus(PushStatus status) {
        this.status = status;
    }

    public Date getStartDate() {
        return this.startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return this.endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getVersionType() {
        return versionType;
    }

    public void setVersionType(Integer versionType) {
        this.versionType = versionType;
    }

    public AppInfoVo getAppInfoVo() {
        return appInfoVo;
    }

    public void setAppInfoVo(AppInfoVo appInfoVo) {
        this.appInfoVo = appInfoVo;
    }

    public enum PushStatus {
        waiting, pushing, pushSuccess, pushFailure;
    }


}
